using UnityEngine;

namespace Gj
{
    public class FormatHelper : NodeHelper
    {
        public string format;
        public NodeHelper helper;

        protected override BindDataType bindDataType => BindDataType.String;

        protected override void BindData(string s)
        {
            Debug.LogErrorFormat(format, s);
            helper.SetData(string.Format(format, s));
        }
    }
}